package com.great.service.impl;

import com.github.pagehelper.PageHelper;
import com.great.dao.OrderDao;
import com.great.domain.Order;
import com.great.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author huangwenkai
 * @date 2021/10/19 10:38
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public List<Order> findAllOrder(int page, int size) {//实现他的分页
        PageHelper.startPage(page, size);
        return orderDao.getAllorder();
    }
}
